@extends('layout.default')

@section('content')

  @include('layout.swiper')

  <div class="weui-cells">
    <div class="weui-cells__title">团队成员</div>
    @foreach($group as $info)
    <a class="weui-cell weui-cell_access" href="{{route('team',$info->uuid)}}">
      <div class="weui-cell__bd">
        <p>{{$info->name}}</p>
      </div>
      <div class="weui-cell__ft"><p>{{$info->number}}人</p></div>
    </a>
    @endforeach    
  </div>

	<div class="weui-btn-area">
    <a href="{{route('index')}}"><button class="weui-btn weui-btn_default wx-default">返回</button></a>
  </div>
@stop

@section('javascript')		
    <script src="//cdn.bootcss.com/jquery-weui/1.2.1/js/swiper.min.js"></script>
    <script src="//cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
    <script type="text/javascript">
      $(function() {

        $('.swiper-container').swiper({
	        loop: true,
	        autoplay: 5000,
	        pagination: '.swiper-pagination',
        	paginationClickable: true
	      });

      });
    </script>

@stop